package cn.jeasy.core.mvc;

import java.lang.reflect.Method;
import java.util.regex.Matcher;

/**
 * 封装 Action 方法相关信息
 *
 * @author Fred
 */
public class Handler {

    private Class<?> actionClass;
    private Method requestMethod;
    private Matcher requestPathMatcher;

    public Handler(Class<?> actionClass, Method requestMethod) {
        this.actionClass = actionClass;
        this.requestMethod = requestMethod;
    }

    public Class<?> getActionClass() {
        return actionClass;
    }

    public Method getRequestMethod() {
        return requestMethod;
    }

    public Matcher getRequestPathMatcher() {
        return requestPathMatcher;
    }

    public void setRequestPathMatcher(Matcher requestPathMatcher) {
        this.requestPathMatcher = requestPathMatcher;
    }
}